package com.promis.widget.mediapicker.manager;

import com.promis.widget.mediapicker.entity.ImageParcelable;

import java.util.List;

/**
 * Created by jidanbo on 2018/3/26.
 */

public class ImagePreviewManager {

    private static ImagePreviewManager manager;

    private ImagePreviewManager() {}

    public synchronized static ImagePreviewManager getInstance() {
        if (manager == null) {
            manager = new ImagePreviewManager();
        }
        return manager;
    }

    private ImagePreviewListener mediaPreviewListener;

    private List<ImageParcelable> imageList;

    private int selectPosition;

    public ImagePreviewListener getMediaPreviewListener() {
        return mediaPreviewListener;
    }

    public void setMediaPreviewListener(ImagePreviewListener mediaPreviewListener) {
        this.mediaPreviewListener = mediaPreviewListener;
    }

    public List<ImageParcelable> getImageList() {
        return imageList;
    }

    public void setImageList(List<ImageParcelable> imageList) {
        this.imageList = imageList;
    }

    public int getSelectPosition() {
        return selectPosition;
    }

    public void setSelectPosition(int selectPosition) {
        this.selectPosition = selectPosition;
    }
}
